package trainingCamp;

import javax.swing.*;
public class Yang2 {
    public static void main(String[] args) {
        JFrame frame=new JFrame();
        JPanel panel=new JPanel();
        JLabel jLabel=new JLabel(new ImageIcon("res/背景.jpg"));
        panel.add(jLabel);
        frame.add(panel);



        frame.setSize(500,850);
        frame.setLocationRelativeTo(null);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);



    }

}
